<template>
  <button plain open-type="chooseAvatar" class="avatar-btn" @chooseavatar="chooseavatar" />
</template>

<script>
export default {
  methods: {
    chooseavatar(obj) {
      this.$emit('get:avatar', obj.detail.avatarUrl)
    }
  }
}
</script>

<style lang="scss" scoped>
	.avatar-btn {
		width: 100%;
		height: 100%;
		border: none;
	}
</style>
